package com.fh.feign;

import com.fh.fallback.OrderItemQueryClientFallback;
import com.fh.fallback.StockQueryClientFallback;
import com.fh.model.OrderItem;
import com.fh.model.ProductSku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "stock-query-skuid",fallback = StockQueryClientFallback.class)
public interface StockqueryClient {

    @GetMapping("stockquery/select")
    public ProductSku queryStock(@RequestParam("skuId") String skuId);

}
